package com.oasys.service;

import com.oasys.entity.po.DeptPo;
import com.oasys.entity.vo.DeptVo;
import com.oasys.utils.ResponseResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/5/15
 **/
public interface DeptService {
    /**
     * 查询部门
     * @param deptVo
     * @return
     */
    ResponseResult<Map<String,Object>> getDeptInfo(DeptVo deptVo);

    /**
     * add部门
     * @param deptName
     * @return
     */
    ResponseResult<Boolean> addDept(String deptName);

    /**
     * up部门
     * @param deptPo
     * @return
     */
    ResponseResult<Boolean> updateDept(DeptPo deptPo);

    /**
     * del部门
     * @param deptPo
     * @return
     */
    ResponseResult<Boolean> delDept(Long deptId);
}
